:root {
  --primary-color: #ff2a4a;
  --background-color: #1a1a1a;
  --card-background: #2a2a2a;
  --text-color: #ffffff;
  --secondary-text: #b3b3b3;
}

.search-page {
  min-height: 100vh;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.back-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--text-color);
  border-left: 2px solid var(--text-color);
  transform: rotate(-45deg);
}

.title {
  font-size: 18px;
  font-weight: 600;
}

.posts-container {
  padding: 0 16px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.post-item {
  background-color: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.post-item:hover {
  transform: scale(1.02);
}

.post-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.post-info {
  padding: 12px;
}

.post-desc {
  font-size: 14px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
}

.username {
  font-size: 12px;
  color: var(--secondary-text);
}

.post-stats {
  display: flex;
  align-items: center;
}

.likes {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--secondary-text);
}

.heart-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin-right: 4px;
}

.date {
  font-size: 12px;
  color: var(--secondary-text);
  margin-left: 8px;
}

.empty-hint {
  text-align: center;
  font-size: 14px;
  color: var(--secondary-text);
  margin: 40px 0;
}